package com.example.mediademo.decode;

import android.media.MediaCodec;

import java.nio.ByteBuffer;

public class Frame {

    public ByteBuffer buffer;

    private MediaCodec.BufferInfo info = new MediaCodec.BufferInfo();

    public void setBufferInfo(MediaCodec.BufferInfo bufferInfo) {
        info.set(bufferInfo.offset,bufferInfo.size,bufferInfo.presentationTimeUs,bufferInfo.flags);
    }

}
